package jsyf.oa.dao.attach;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.attach.AttachmentEntity;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;

/**
 * Created by Administrator on 2017/12/13 0013.
 */
@Repository
public class AttachDao extends BaseDao {
    public AttachDao() {
        super.iBaseEntity = new AttachmentEntity();
    }

    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return JSON.toJavaObject(json, AttachmentEntity.class);
    }
}
